﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.Net.Mail;
using System.Net;

namespace CorreoSocialWeb
{
    public class SMTPMail
    {
        public static void Send(NetworkCredential credentials, string asunto, string destinatario, string mensaje)
        {
            SmtpClient client = new SmtpClient("smtp.gmail.com", 587);

            client.EnableSsl = true;
            client.Credentials = credentials;
            client.Timeout = 5 * 1000;

            client.Send("noresponder@correosocial.com.ar", destinatario, asunto, mensaje);
        }
    }
}